package com.bzkj.web.controller.yxl;

import com.bzkj.basicinfo.domain.yxl.CustomerDto;
import com.bzkj.basicinfo.service.yxl.CustomerService;
import com.bzkj.common.core.controller.BaseController;
import com.bzkj.common.core.page.TableDataInfo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author：swj
 * @Desc银杏林客商信息
 * @Date：2025/7/21 11:49
 */
@Api(tags = "客商管理")
@RestController
@RequestMapping("/customer")
public class YxlCustomerController extends BaseController {

    @Autowired
    private CustomerService customerService;

    @ApiOperation("查询接口")
//    @PreAuthorize("@ss.hasPermi('basic:nccBasic:query')")
    @GetMapping("/queryList")
    public TableDataInfo findNccBasicCustomerDataPage(CustomerDto dto) {
        startPage();
        return getDataTable(customerService.queryCustomerList(dto));
    }
}
